<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/system/dic/list" method="POST">
        <input type="hidden" name="pageSize" value="${pageInfo.pageSize}">
        <input type="hidden" name="pageNum" value="${pageInfo.pageNum}">
        <div class="bjui-searchBar">
            <label>名称：</label><input type="text" name="dicName" value="${dic.dicName!}" size="15"/>
            <label>编码：</label><input type="text" name="dicTypeCode" value="${dic.dicTypeCode!}" size="15"/>
            <label>状态:</label>
            <@h.select name="available" list=fn.getDicValue('AVAILABLE_STATUS') value=dic.available defaultOptions= {"":"全部"}/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="${ctx}/system/dic/create" data-toggle="dialog" data-id="dialog-mask" data-id="createDic" data-mask="true"><i class="fa fa-plus"></i> 新增数据</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed"  data-width="100%">
	    <thead>
	        <tr>
	            <th>字典名称</th>
	            <th>字典编码</th>
	            <th>状态</th>  
	            <th>创建时间</th>
	            <th align="center">操作</th>
	        </tr>
	    </thead>
	    <tbody>
	        <#list pageInfo.list as dic>
	            <tr data-id="${dic.dicId}">
	                <td>${dic.dicName}</td>
	                <td>${dic.dicTypeCode}</td>
	                <td>${fn.getDicValue('AVAILABLE_STATUS',dic.available)!}</td>
                	<td>${dic.createTime ? datetime}</td>
	                <td>	                    
	                	<a href="${ctx}/system/dic/${dic.dicId}/edit" class="btn btn-default btn-sm" data-toggle="dialog" data-id="editDic${dic.dicId}" data-mask="true">修改</a>
	                    <a href="${ctx}/system/dic/${dic.dicId}/delete" class="btn btn-default btn-sm" data-toggle="doajax" data-confirm-msg="确定要删除吗？">删除</a>
	                    <a href="${ctx}/system/dicItem/?dicId=${dic.dicId}" class="btn btn-default btn-sm" data-toggle="ajaxload" data-target="#${right_divid}">字典项维护</a>
	                </td>
	            </tr>
	        </#list>
	    </tbody>
	</table>
</div>
<@h.pageFooter />

